<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="brand" href="<?= base_url() ?>">Ynote.me</a>
            <div class="nav-collapse collapse">
                <ul class="nav pull-right">
                    <?php
                    if ($this->session->userdata('logged_in')) {
                        echo '<li class="' . base_url() . 'active"><a href="' . base_url() . '">My note</a></li>';
                        echo '<li><a href="' . base_url() . 'friends">Friends </a></li>';
                        echo '<li><a href="' . base_url() . 'account">Account</a></li>';
                        echo '<li><a href="' . base_url() . 'logout">Logout</a></li>';
                    }
                    ?>
                </ul>
            </div><!--/.nav-collapse -->
        </div>
    </div>
</div>